<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>


<style>
.portaltb {
	font-weight: normal;
	padding-bottom: 5px;
	color: #555;
	font-size: 12px;
	table-layout: fixed;
	width: 100%;
	cursor: pointer;
	margin: 0px 5px;
}

.portaltb tr {
	height: 30px;
}

.ptd1 {
	text-overflow: ellipsis;
	-moz-text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	width: 67%;
}

.ptd1:hover {
	text-decoration: underline;
}

.ptd2 {
	text-overflow: ellipsis;
	-moz-text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}
.linkMore
{
   position: absolute;
   bottom: 10px;
   right: 20px;
   color:#555;
}
.linkMore:hover
{
   text-decoration: underline;
}
</style>

<div>
	<table class="portaltb">
		<c:forEach items="${newTop10Entities}" var="warmEntiry">
			<tr>
				<td align="left" class="ptd1"><a
					href="javascript:viewKnowledge('${warmEntiry.id }')">${warmEntiry.title}</a>
				</td>
				<td align="center" class="ptd2"><fmt:formatDate
						value="${warmEntiry.publishDate}" pattern="yyyy-MM-dd" /></td>
			</tr>
		</c:forEach>
	</table>
	<a class="linkMore" href="knowledge/knowledgeSearch/searchResultView" target="_black">更多></a>
</div>
<script type="text/javascript">
	function viewKnowledge(id) {
		var tempTitle = "知识详情";
		var tempUrl = "knowledge/knowledgeSearch/knowledgeInfoView?id=" + id;
		var options = {
			title : tempTitle,
			contentUrl : tempUrl
		};
		isperp.openDialog(options);
	}
	
	function openMore()
	{
	    var tempTitle = "更多知识";
		var tempUrl = "knowledge/knowledgeSearch/searchResultView";
		var options = {
			title : tempTitle,
			contentUrl : tempUrl
		};
		isperp.openDialog(options);
	}
</script>


